package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo07 {
    public static void main(String[] args) {
        try (FileOutputStream fileOutputStream = new FileOutputStream("d:/text.txt", true)) {
            fileOutputStream.write('a');
            fileOutputStream.write(98);
            fileOutputStream.write('c');
            fileOutputStream.write(100);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
